package com.graduation.rescuematerial.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.graduation.rescuematerial.pojo.Catalog;
import com.graduation.rescuematerial.vo.CatalogVo;
import com.graduation.rescuematerial.vo.RespBean;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author CaiShuangLian
 * @since 2022-04-24
 */
public interface ICatalogService extends IService<Catalog> {

    /**
     * 获取该组织下的物资种类
     * @param companyName
     * @return
     */
    RespBean getCatalogByCompanyName(String companyName);

    //系统管理员获取物资目录
    RespBean getAllCatalog();

    //系统管理员添加目录
    RespBean addOne(CatalogVo addCatalogVo);

    RespBean updateInfo(CatalogVo addCatalogVo);

    RespBean fuzzyQuery(String key);

    RespBean catalogDropDownBox();
}
